import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      badgeType: 'dot',
      icon: VBEN_LOGO_URL,
      order: 1,
      title: '验收',
    },
    name: 'Acceptance',
    path: '/acceptance',
    children: [
      {
        name: 'AcceptanceRecord',
        path: '/acceptance/record',
        component: () => import('#/views/acceptance/record/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '已验收记录',
        },
      },
      {
        name: 'AcceptanceHandmade',
        path: '/acceptance/handmade',
        component: () => import('#/views/acceptance/handmade/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '手工验收',
        },
      },
    ],
  },
];

export default routes;
